Optimal. Leaf size=83 \[ -\frac{x \log \left (x^2-\sqrt{x^2}+1\right )}{6 \sqrt{x^2}}+\frac{x \log \left (\sqrt{x^2}+1\right )}{3 \sqrt{x^2}}-\frac{x \tan ^{-1}\left (\frac{1-2 \sqrt{x^2}}{\sqrt{3}}\right )}{\sqrt{3} \sqrt{x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0385793, antiderivative size = 83, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.636, Rules used = {254, 200, 31, 634, 618, 204, 628} \[ -\frac{x \log \left (x^2-\sqrt{x^2}+1\right )}{6 \sqrt{x^2}}+\frac{x \log \left (\sqrt{x^2}+1\right )}{3 \sqrt{x^2}}-\frac{x \tan ^{-1}\left (\frac{1-2 \sqrt{x^2}}{\sqrt{3}}\right )}{\sqrt{3} \sqrt{x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 254
Rule 200
Rule 31
Rule 634
Rule 618
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{1}{1+\left (x^2\right )^{3/2}} \, dx &=\frac{x \operatorname{Subst}\left (\int \frac{1}{1+x^3} \, dx,x,\sqrt{x^2}\right )}{\sqrt{x^2}}\\ &=\frac{x \operatorname{Subst}\left (\int \frac{1}{1+x} \, dx,x,\sqrt{x^2}\right )}{3 \sqrt{x^2}}+\frac{x \operatorname{Subst}\left (\int \frac{2-x}{1-x+x^2} \, dx,x,\sqrt{x^2}\right )}{3 \sqrt{x^2}}\\ &=\frac{x \log \left (1+\sqrt{x^2}\right )}{3 \sqrt{x^2}}-\frac{x \operatorname{Subst}\left (\int \frac{-1+2 x}{1-x+x^2} \, dx,x,\sqrt{x^2}\right )}{6 \sqrt{x^2}}+\frac{x \operatorname{Subst}\left (\int \frac{1}{1-x+x^2} \, dx,x,\sqrt{x^2}\right )}{2 \sqrt{x^2}}\\ &=-\frac{x \log \left (1+x^2-\sqrt{x^2}\right )}{6 \sqrt{x^2}}+\frac{x \log \left (1+\sqrt{x^2}\right )}{3 \sqrt{x^2}}-\frac{x \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,-1+2 \sqrt{x^2}\right )}{\sqrt{x^2}}\\ &=-\frac{x \tan ^{-1}\left (\frac{1-2 \sqrt{x^2}}{\sqrt{3}}\right )}{\sqrt{3} \sqrt{x^2}}-\frac{x \log \left (1+x^2-\sqrt{x^2}\right )}{6 \sqrt{x^2}}+\frac{x \log \left (1+\sqrt{x^2}\right )}{3 \sqrt{x^2}}\\ \end{align*}
Mathematica [A] time = 0.0217577, size = 67, normalized size = 0.81 \[ \frac{x \left (-\log \left (x^2-\sqrt{x^2}+1\right )+2 \log \left (\sqrt{x^2}+1\right )+2 \sqrt{3} \tan ^{-1}\left (\frac{2 \sqrt{x^2}-1}{\sqrt{3}}\right )\right )}{6 \sqrt{x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.008, size = 108, normalized size = 1.3 \begin{align*}{\frac{{x}^{3}}{6} \left ( -2\,\sqrt{3}\arctan \left ( 1/3\,{\sqrt{3} \left ( -2\,x+\sqrt [3]{{\frac{{x}^{3}}{ \left ({x}^{2} \right ) ^{3/2}}}} \right ){\frac{1}{\sqrt [3]{{\frac{{x}^{3}}{ \left ({x}^{2} \right ) ^{3/2}}}}}}} \right ) +2\,\ln \left ( x+\sqrt [3]{{\frac{{x}^{3}}{ \left ({x}^{2} \right ) ^{3/2}}}} \right ) -\ln \left ({x}^{2}-x\sqrt [3]{{{x}^{3} \left ({x}^{2} \right ) ^{-{\frac{3}{2}}}}}+ \left ({{x}^{3} \left ({x}^{2} \right ) ^{-{\frac{3}{2}}}} \right ) ^{{\frac{2}{3}}} \right ) \right ) \left ({x}^{2} \right ) ^{-{\frac{3}{2}}} \left ({{x}^{3} \left ({x}^{2} \right ) ^{-{\frac{3}{2}}}} \right ) ^{-{\frac{2}{3}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.41972, size = 46, normalized size = 0.55 \begin{align*} \frac{1}{3} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) - \frac{1}{6} \, \log \left (x^{2} - x + 1\right ) + \frac{1}{3} \, \log \left (x + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.30044, size = 153, normalized size = 1.84 \begin{align*} \frac{1}{3} \, \sqrt{3} \arctan \left (\frac{2}{3} \, \sqrt{3} \sqrt{x^{2}} - \frac{1}{3} \, \sqrt{3}\right ) - \frac{1}{6} \, \log \left (x^{2} - \sqrt{x^{2}} + 1\right ) + \frac{1}{3} \, \log \left (\sqrt{x^{2}} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.130622, size = 41, normalized size = 0.49 \begin{align*} \frac{\log{\left (x + 1 \right )}}{3} - \frac{\log{\left (x^{2} - x + 1 \right )}}{6} + \frac{\sqrt{3} \operatorname{atan}{\left (\frac{2 \sqrt{3} x}{3} - \frac{\sqrt{3}}{3} \right )}}{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.20624, size = 146, normalized size = 1.76 \begin{align*} -\frac{\sqrt{3}{\left (-i \, \sqrt{3} - 1\right )} \arctan \left (\frac{\sqrt{3}{\left (2 \, x + \left (-\frac{1}{\mathrm{sgn}\left (x\right )}\right )^{\frac{1}{3}}\right )}}{3 \, \left (-\frac{1}{\mathrm{sgn}\left (x\right )}\right )^{\frac{1}{3}}}\right )}{6 \, \mathrm{sgn}\left (x\right )^{\frac{1}{3}}} - \frac{1}{9} i \, \pi \mathrm{sgn}\left (x\right ) - \frac{{\left (-i \, \sqrt{3} - 1\right )} \log \left (x^{2} + x \left (-\frac{1}{\mathrm{sgn}\left (x\right )}\right )^{\frac{1}{3}} + \left (-\frac{1}{\mathrm{sgn}\left (x\right )}\right )^{\frac{2}{3}}\right )}{12 \, \mathrm{sgn}\left (x\right )^{\frac{1}{3}}} - \frac{1}{3} \, \left (-\frac{1}{\mathrm{sgn}\left (x\right )}\right )^{\frac{1}{3}} \log \left ({\left | x - \left (-\frac{1}{\mathrm{sgn}\left (x\right )}\right )^{\frac{1}{3}} \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]